package com.victor.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;

import com.victor.entity.CommentsPhoto;
@Mapper
public interface CommentsPhotoDao {
    int deleteByPrimaryKey(Integer id);
    /**
     * 添加评论图片
     * @param record
     * @return
     */
    boolean insertSelective(CommentsPhoto record);

    CommentsPhoto selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(CommentsPhoto record);

    int updateByPrimaryKey(CommentsPhoto record);
    /**
     * 根据评论id查询
     * @param id
     * @return
     */
    List<CommentsPhoto> selByTcid(Integer id);
}